# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-niapy
_pkgorig=NiaPy
pkgver=2.0.2
pkgrel=0
pkgdesc="Python micro framework for building nature-inspired algorithms."
url="https://github.com/NiaOrg/NiaPy"
arch="noarch !riscv64" # py3-matplotlib
license="MIT"
depends="python3 py3-numpy py3-pandas py3-openpyxl py3-matplotlib"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/NiaOrg/NiaPy/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
d13fe766aa4e1d3150be07845d2fcfa856b6ffd66d70e9a8de187325da3c702f266a1b65ee817879e344d3b6302c12deac8e8f6550699b01c9df900d82be0644  py3-niapy-2.0.2.tar.gz
"
